package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author hjy
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_invoice_record")
public class InvoiceRecordDo extends Model<InvoiceRecordDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("company_id")
    private Long companyId;

    @TableField("type")
    private Integer type;

    /**
     * 开票金额
     */
    @TableField("invoice_amount")
    private Double invoiceAmount;

    @TableField("invoice_number")
    private Double invoiceNumber;

    /**
     * 开票抬头
     */
    @TableField("invoice_title")
    private String invoiceTitle;

    /**
     * 审批状态来自代码表
     */
    @TableField("status")
    private Long status;

    /**
     * 税号
     */
    @TableField("tax_number")
    private String taxNumber;

    /**
     * 开户行
     */
    @TableField("bank")
    private String bank;

    /**
     * 银行账号
     */
    @TableField("bank_account")
    private String bankAccount;

    /**
     * 公司地址
     */
    @TableField("company_address")
    private String companyAddress;

    /**
     * 公司电话
     */
    @TableField("company_telephone")
    private String companyTelephone;

    /**
     * 发票图片id
     */
    @TableField("invoice_image_file_id")
    private Long invoiceImageFileId;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    /**
     * 期望开票月份
     */
    @TableField("expected_month")
    private String expectedMonth;

    /**
     * 发票链接
     */
    @TableField("invoice_link")
    private String invoiceLink;

    @TableField("tips")
    private String tips;

    @TableField("invoice_media")
    private String invoiceMedia;

    @TableField("ship_msg")
    private String shipMsg;

    @TableField("revenue_month")
    private String revenueMonth;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("currency")
    private Long currency;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
